<!DOCTYPE html>
<html>
  
  <head>
    <meta charset="UTF-8">
    <title>订单管理</title>
    <!--<link rel="stylesheet" type="text/css" href="css/base.min.css" />
    <link rel="stylesheet" type="text/css" href="css/common.css" />-->
    <link rel="stylesheet" type="text/css" href="{:_SKIN}/user/layui/css/layui.css" />
    <link rel="stylesheet" type="text/css" href="{:_SKIN}/user/css/baojia.css" />
    <script src="{:_SKIN}/user/layui/lay/dest/layui.all.js" type="text/javascript" charset="utf-8"></script>
    <style type="text/css">.layui-table, .layui-table th { text-align: center; font-size: 12px; } .layui-table { margin-top: -10px; } .layui-tab-title a { text-decoration: none; }



       .Pagination a:hover,
.current{background-color: #565656;border: 1px solid #565656;color: #ffffff; }

.Pagination{height: auto;_height: 45px; line-height: 20px; color:ffffff; clear:both;width:560px; margin:0 0 0 auto;}

  .Pagination a,.Pagination span{ font-size: 14px;text-decoration: none;display: block;float: left;color: #565656;border: 1px solid #ccc;height: 34px;line-height: 34px;margin: 0 2px;width: 34px;text-align: center; }
   .Pagination li span { background-color: #7baa18; color:#fff; }



    </style></head>
  
  <body>
    <div class="content">
      <div class="titlebar">
        <div class="titlebar-name">拼团订单</div></div>
      <div class="my-s-a">
        <div class="my-s-a-a">
          <input class="my-s-a-a-s" type="text" name="title" value="" onkeypress="" placeholder="输入产品标题">
          <input class="my-s-a-a-b" type="button" value="查找" onclick=""></div>
      </div>
        <div class="layui-tab">
        <ul class="layui-tab-title">
          <li class="layui-this">全部</li>
         <!--  <li>下单成功</li> -->
          <li>支付成功</li>
          <li>已发货</li>
          <li>交易完成</li>
          <li>取消订单</li></ul>
        <div class="layui-tab-content">
          <div class="layui-tab-item layui-show">
            <table class="layui-table">
              <colgroup>
                <col width="100">
                  <col width="100">
                    <col></colgroup>
              <thead>
                <tr>
                  <!-- <th>订单编号</th> -->
                  <th>收货人</th>
                  <th>手机号</th>
                  <th>省市县</th>
                  <th>地址</th>
                  <th>金额</th>
                 <!--  <th>下单时间</th> -->
                  <!-- <th>支付时间</th> -->
                 <!--  <th>支付方式</th> -->
                  <th>
                  状态
                   <!--  <select name="status" id="status" onchange="" style="font-weight: initial;">
                      <option value="0" selected="selected">全部</option>
                      <option value="1">下单成功</option>
                      <option value="2">支付成功</option>
                      <option value="3">已发货</option>
                      <option value="4">交易完成</option>
                      <option value="5">取消订单</option></select> -->
                  </th>
                  <th>操作</th></tr>
              </thead>
              <tbody>
              {volist name="spell" id="vo"}
                <tr>
                  <td>{$vo.name}</td>
                  <td>{$vo.tel}</td>
                  <td>{$vo.city}</td>
                  <td>{$vo.address}</td>
                  <td>{$vo.money}</td>
                  <!-- <td>{$vo.addtime}</td> -->
               <!--    <td>{$vo.paytime}</td> -->
                  <td>
                  {switch name="$vo.state"}    

                  {case value="1"}已付款{/case}    
                  {case value="2"}已发货{/case}
                  {case value="3"}已完成{/case}  
                  {case value="4"}退款中{/case}    
                  {default/}全部


                   {/switch}
                  </td>
                 <!--  <td>null</td>  -->
                  <td>
                    <a class="s_del" style="color: red;" data-id="{$vo.id}">删除</a></td>
                </tr>
                {/volist}
              </tbody>
            </table>
          </div>
           <div class="layui-tab-item">
            <table class="layui-table">
              <colgroup>
                <col width="100">
                  <col width="100">
                    <col></colgroup>
              <thead>
                <tr>
                  <th>收货人</th>
                  <th>手机号</th>
                  <th>省市县</th>
                  <th>地址</th>
                  <th>金额</th>
                 <!--  <th>下单时间</th>
                  <th>支付时间</th> -->
                  <th>
                  状态
                   <!--  <select name="status" id="status" onchange="" style="font-weight: initial;">
                      <option value="0" selected="selected">全部</option>
                      <option value="1">下单成功</option>
                      <option value="2">支付成功</option>
                      <option value="3">已发货</option>
                      <option value="4">交易完成</option>
                      <option value="5">取消订单</option></select> -->
                  </th>
                  <th>操作</th></tr>
              </thead>
              <tbody>
               
                  {volist name="state" id="vo"}
                <tr>
                  <td>{$vo.name}</td>
                  <td>{$vo.tel}</td>
                  <td>{$vo.city}</td>
                  <td>{$vo.address}</td>
                  <td>{$vo.money}</td>
                  <!-- <td>{$vo.addtime}</td>
                  <td>{$vo.paytime}</td> -->
                   <td>
                  {switch name="$vo.state"}    

                  {case value="1"}已付款{/case}    
                  {case value="2"}已发货{/case}
                  {case value="3"}已完成{/case}  
                  {case value="4"}退款中{/case}    
                  {default/}全部


                   {/switch}
                  </td>
                 
                  <td>
                    <a class="s_del" style="color: red;" data-id="{$vo.id}">删除</a></td>
                </tr>
                {/volist} 
              </tbody>
            </table>
          </div>
          <div class="layui-tab-item">
            <table class="layui-table">
              <colgroup>
                <col width="100">
                  <col width="100">
                    <col></colgroup>
              <thead>
                <tr>
                <th>收货人</th>
                  <th>手机号</th>
                  <th>省市县</th>
                  <th>地址</th>
                  <th>金额</th>
                  <!-- <th>下单时间</th>
                  <th>支付时间</th> -->
                  <th>
                  状态
                   <!--  <select name="status" id="status" onchange="" style="font-weight: initial;">
                      <option value="0" selected="selected">全部</option>
                      <option value="1">下单成功</option>
                      <option value="2">支付成功</option>
                      <option value="3">已发货</option>
                      <option value="4">交易完成</option>
                      <option value="5">取消订单</option></select> -->
                  </th>
                  <th>操作</th></tr>
              </thead>
              <tbody>
                
                  {volist name="deliver" id="vo"}
                <tr>
                  <td>{$vo.name}</td>
                  <td>{$vo.tel}</td>
                  <td>{$vo.city}</td>
                  <td>{$vo.address}</td>
                  <td>{$vo.money}</td>
                  <!-- <td>{$vo.addtime}</td>
                  <td>{$vo.paytime}</td> -->
                   <td>
                  {switch name="$vo.state"}    

                  {case value="1"}已付款{/case}    
                  {case value="2"}已发货{/case}
                  {case value="3"}已完成{/case}  
                  {case value="4"}退款中{/case}    
                  {default/}全部


                   {/switch}
                  </td>
                  <td>
                    <a class="s_del" style="color: red;" data-id="{$vo.id}">删除</a></td>
                </tr>
                {/volist} 
              </tbody>
            </table>
          </div>
          <div class="layui-tab-item">
            <table class="layui-table">
              <colgroup>
                <col width="100">
                  <col width="100">
                    <col></colgroup>
              <thead>
                <tr>
                 <th>收货人</th>
                  <th>手机号</th>
                  <th>省市县</th>
                  <th>地址</th>
                  <th>金额</th>
                 <!--  <th>下单时间</th>
                  <th>支付时间</th> -->
                   <th>
                  状态
                   <!--  <select name="status" id="status" onchange="" style="font-weight: initial;">
                      <option value="0" selected="selected">全部</option>
                      <option value="1">下单成功</option>
                      <option value="2">支付成功</option>
                      <option value="3">已发货</option>
                      <option value="4">交易完成</option>
                      <option value="5">取消订单</option></select> -->
                  </th>
                  <th>操作</th></tr>
              </thead>
              <tbody>
                  {volist name="end" id="vo"}
                <tr>
                  <td>{$vo.name}</td>
                  <td>{$vo.tel}</td>
                  <td>{$vo.city}</td>
                  <td>{$vo.address}</td>
                  <td>{$vo.money}</td>
                  <!-- <td>{$vo.addtime}</td>
                  <td>{$vo.paytime}</td> -->
                  <td>
                  {switch name="$vo.state"}    

                  {case value="1"}已付款{/case}    
                  {case value="2"}已发货{/case}
                  {case value="3"}已完成{/case}  
                  {case value="4"}退款中{/case}    
                  {default/}全部


                   {/switch}
                  </td>
                  <td>
                    <a class="s_del" style="color: red;" data-id="{$vo.id}">删除</a></td>
                </tr>
                {/volist} 
              </tbody>
            </table>
          </div>
          <div class="layui-tab-item">
            <table class="layui-table">
              <colgroup>
                <col width="100">
                  <col width="100">
                    <col></colgroup>
              <thead>
                <tr>
                 <th>收货人</th>
                  <th>手机号</th>
                  <th>省市县</th>
                  <th>地址</th>
                  <th>金额</th>
                  <!-- <th>下单时间</th>
                  <th>支付时间</th> -->
                  <th>
                  状态
                   <!--  <select name="status" id="status" onchange="" style="font-weight: initial;">
                      <option value="0" selected="selected">全部</option>
                      <option value="1">下单成功</option>
                      <option value="2">支付成功</option>
                      <option value="3">已发货</option>
                      <option value="4">交易完成</option>
                      <option value="5">取消订单</option></select> -->
                  </th>
                  <th>操作</th></tr>
              </thead>
              <tbody>
             {volist name="money" id="vo"}
                <tr>
                  <td>{$vo.name}</td>
                  <td>{$vo.tel}</td>
                  <td>{$vo.city}</td>
                  <td>{$vo.address}</td>
                  <td>{$vo.money}</td>
                 <!--  <td>{$vo.addtime}</td>
                  <td>{$vo.paytime}</td> -->
                  <td>
                  {switch name="$vo.state"}    

                  {case value="1"}已付款{/case}    
                  {case value="2"}已发货{/case}
                  {case value="3"}已完成{/case}  
                  {case value="4"}退款中{/case}    
                  {default/}全部


                   {/switch}
                  </td>
                  <td>
                    <a class="s_del" style="color: red;" data-id="{$vo.id}">删除</a></td>
                </tr>
                {/volist} 
              </tbody>
            </table>
          </div>
         <div class="Pagination">{$page}</div>
      <script>//注意：选项卡 依赖 element 模块，否则无法进行功能性操作
        layui.use('element',
        function() {
          var element = layui.element();

          //…
        });</script>
    </div>
    {:jq()}
    {:layui()}
    <script type="text/javascript">
      
    $(".s_del").click(function(){
    
      var id=$(this).data('id');

      var r =confirm("确定删除？删除后不能恢复");
      if(r==true){
          $.post("{:url('user/buyers/delsec')}",{id:id},function(res){
                  if(res.code==200){
                    alert("删除成功");

                    window.location.reload();

                  }else{


                    alert(res.msg)
                  }
          });
      }
    });









    </script>
  </body>

</html>